﻿using UnityEngine;
using System.Collections;

public class getPower : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnTriggerEnter(Collider hit)
    {
        if (hit.tag == "Player")
        {
            SPFInput.speed++;
            print("速度：" + SPFInput.speed);
            GetComponent<AudioSource>().Play();
            Destroy(gameObject,0.3f);
        }
    }
}
